package com.open.capacity.course.dao;

import com.open.capacity.common.model.Course;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface CourseDao {
    int count(Map<String, Object> params);

    List<Course> getSelectCourses(Map<String, Object> params);

    int addCourse(Course course);

    int updateCourse(Course course);

    int delCourse(int id);

    List<Course> isHaveCourse(String title, Integer id);

    Course selectCourseById(int id);
}
